package com.jiantong.work.service;

import com.jiantong.work.model.MaterialPurchaseRecord;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by maowenjie on 2017/4/12.
 */
public interface MaterialPurchaseRecordWriteService {

    /**
     * 创建
     * @param materialPurchaseRecord 单据对象
     * @return 主键 id
     */
    Response<Map<String, Object>> create(MaterialPurchaseRecord materialPurchaseRecord, Integer toStatus);

    /**
     * 添加
     * @param materialPurchaseRecord 单据对象
     * @return 主键 id
     */
    Response<Map<String,Object>>update(MaterialPurchaseRecord materialPurchaseRecord,Integer toStatus);

    Boolean update(MaterialPurchaseRecord materialPurchaseRecord);
}
